package com.cn.controller;

import com.cn.pojo.TzProdProp;
import com.cn.service.ServiceProp;
import com.cn.utils.RequestPage;
import com.cn.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 分类属性
 */
@RestController
@RequestMapping("/prop/value")
public class PropController {


    @Autowired
    private ServiceProp serviceProp;

    /**
     * 查询规格信息
     * @param requestPage
     * @return
     */
    @GetMapping("/propPage")
    public Result propPage(@RequestBody RequestPage requestPage){
        List<TzProdProp> tzProdPropList = serviceProp.propPage(requestPage);
        return Result.success(tzProdPropList);
    }


}
